package com.ruoyi.web.controller.example;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teacher.service.TeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Anonymous
@RestController
@Api(tags = "教师管理")
public class TeacherController {
    @Autowired
    TeacherService service;
    @RequestMapping("/GetTeacherList")
    @ApiOperation(value="教师列表")
    public AjaxResult GetTeacherList(){
        return  AjaxResult.success(service.getTeacherList());
    }

}
